/*
 * Discovery.h
 *
 *  Created on: 2011-9-27
 *      Author: stargui
 */

#ifndef DISCOVERY_H_
#define DISCOVERY_H_

namespace PROTOCOL
{

#define MODULE_DISCOVERY 			"DISCOVERY"		///< 模块名称
#define DISCOVERY_PROBE				"PROBE"
#define DISCOVERY_REBOOT			"REBOOT"
#define DISCOVERY_SETNETWORK		"SETNETWORK"
#define DISCOVERY_RETURN			"RETURN"
#define DISCOVERY_CLIENT			"CLIENT"
#define DISCOVERY_DEVICE			"DEVICE"
#define DISCOVERY_MAGIC				"MAGIC"
#define DISCOVERY_MAGIC_STRING		"RM_475A4AA5"

#define DISCOVERY_LISTSERVER		"LISTSERVER"	///< 模块方法
#define DISCOVERY_DEVICESN			"DEVICESN"		///< 设备序列号
#define DISCOVERY_SIGNALSERVER		"SIGNAL"		///< 方法参数
#define DISCOVERY_STUNSERVER		"STUN"		///< 方法参数
#define DISCOVERY_STREAMSERVER		"STREAM"		///< 方法参数
#define DISCOVERY_WEBSERVER			"WEB"		///< 方法参数
#define DISCOVERY_VERSION_STRING  "1.0.0.0"

//网络版本协议版本及设备类型字段定义
#define NET_VERSION					"VERSION"
#define DEVICE_NAME					"DEVICENAME"
// port
#define WEB_PORT						"WEBPORT"
#define MEDIA_PORT					"MEDIAPORT"
#define MOBILE_PORT					"MOBILEPORT"
//net param
#define ETH_IP						"IP_ET"
#define ETH_NETMASK					"NETMASK_ET"
#define ETH_GATEWAY					"GATEWAY_ET"
#define ETH_DNS						"DNS1_ET"
#define ETH_ALTERNATDNS				"DNS2_ET"
#define WIFI_ENABLE					"WIFI_EN"
#define WIFI_IP						"IP_WIFI"
#define WIFI_NETMASK					"NETMASK_WIFI"
#define WIFI_GATEWAY					"GATEWAY_WIFI"
#define WIFI_DNS						"DNS1_WIFI"
#define WIFI_ALTERNATDNS			"DNS2_WIFI"

}

#endif /* DISCOVERY_H_ */
